package com.taiyo.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.taiyo.modules.api.dao.TIdentityDao;
import com.taiyo.modules.api.entity.TIdentityEntity;
import com.taiyo.modules.api.service.TIdentityService;



@Service("tIdentityService")
public class TIdentityServiceImpl implements TIdentityService {
	@Autowired
	private TIdentityDao tIdentityDao;
	
	@Override
	public TIdentityEntity queryObject(Long id){
		return tIdentityDao.queryObject(id);
	}
	
	@Override
	public List<TIdentityEntity> queryList(Map<String, Object> map){
		return tIdentityDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tIdentityDao.queryTotal(map);
	}
	
	@Override
	public long save(TIdentityEntity tIdentity){
	return 	tIdentityDao.save(tIdentity);
	}
	
	@Override
	public void update(TIdentityEntity tIdentity){
		tIdentityDao.update(tIdentity);
	}
	
	@Override
	public void delete(Long id){
		tIdentityDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tIdentityDao.deleteBatch(ids);
	}
	
}
